package Main;

import java.io.BufferedWriter;
import java.io.FileWriter;

import algorithm.TreeNode;

public class OutPutter {

		public void OutPut(TreeNode aTreeExclamationMark){
			
			  try{
				  
				FileWriter fstream = new FileWriter("DecisionTree.txt");
			  	BufferedWriter out = new BufferedWriter(fstream);
			  	String tree = "" + aTreeExclamationMark.toString();
			  	out.write(tree);
		
			  	out.close();
			  }catch (Exception e){
				  System.err.println("Error: " + e.getMessage());
			  }

			
			
		}


}
